init() {
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
- this._loadBackground().catch(logError);
+ this._doStartupAnimation().catch(logError);
}
showOverview() {
return this._keyboardIndex;
}
+ async _doStartupAnimation() {
+ await this._loadBackground();
+
+ this._systemBackground.show();
+ global.stage.show();
+
+ try {
+ await this._prepareStartupAnimation();
+ await this._startupAnimation();
+ } catch (e) {
+ logError(e);
+ } finally {
+ this._startupAnimationComplete();
+ }
+ }
+
async _loadBackground() {
await this._ensurePrimaryMonitor();
});
await promise;
-
- this._systemBackground.show();
- global.stage.show();
- this._prepareStartupAnimation().catch(logError);
}
// Startup Animations
setTimeout(() => this.emit('startup-prepared'), 200);
else
this.emit('startup-prepared');
-
- try {
- await this._startupAnimation();
- } finally {
- this._startupAnimationComplete();
- }
}
async _startupAnimation() {